package com.alumni_circle.service.home.impl;

import com.alumni_circle.entity.home.SlideShow;
import com.alumni_circle.mapper.home.SlideShowMapper;
import com.alumni_circle.service.home.ISlideShowService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 龙小虬
 * @since 2020-07-06 22:49
 */
@Service
public class SlideShowServiceImpl extends ServiceImpl<SlideShowMapper, SlideShow> implements ISlideShowService {

    @Resource
    SlideShowMapper slideShowMapper;

    @Override
    public void update(String sequence, String id) {
        slideShowMapper.update(sequence,id);
    }

    @Override
    public List<String> viewSlideShow() {
        return slideShowMapper.viewSlideShow();
    }

    @Override
    public void resetSequence() {
        slideShowMapper.resetSequence();
    }
}
